﻿#ifndef ICONPUSHBUTTON_H
#define ICONPUSHBUTTON_H


#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include <QPropertyAnimation>



namespace Ui {
class bslLabelAndPushButton;
}




class bslLabelAndPushButton : public QWidget
{
    Q_OBJECT

public:
    explicit bslLabelAndPushButton(QWidget *parent = nullptr);
    ~bslLabelAndPushButton();


    QLabel*         m_pLabel          = nullptr;
    QPushButton*    m_pPushButton     = nullptr;
    QGridLayout*    m_pGridLayout     = nullptr;



    void mAddSubWidget(QWidget* pSubWidget);
    void mExpend(bool IfExpand = true);

private:
    Ui::bslLabelAndPushButton *ui;
    bool m_bIfExpend = true;
};

#endif // ICONPUSHBUTTON_H
